﻿namespace TheSnakeGame.Engine.GameObjects
{
    /// <summary>
    /// Represents a logical object that is processed by the game engine at each turn
    /// </summary>
    public class GameObject
    {
        private Point position;

        public GameObject(Point position)
            : this()
        {
            this.Position = position;
        }

        public GameObject()
        {
            this.IsForDestruction = false;
        }

        public Point Position
        {
            get { return this.position; }
            set { this.position = value; }
        }

        public bool IsForDestruction
        { 
            get; 
            set; 
        }

        public virtual void DoAction()
        {
        }
    }
}
